package com.un.ebs.production.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.un.ebs.production.domain.ProductionWorkOrder;
import com.un.ebs.production.domain.ProductionWorkOrderExt;
import com.un.ebs.production.domain.ProductionWorkOrderOutExt;

import java.util.List;

/**
 * (TbProductionWorkOrder)表服务接口
 *
 * @author liubo
 * @since 2020-07-07 13:22:25
 */
public interface ProductionWorkOrderService extends IService<ProductionWorkOrder> {

    void start(String id);

    void complete(String id);

    void completeFix();

    void completeOrder(String productionOrderId);

    void completeOrderItem(String productionOrderItemId);

    ProductionWorkOrderExt queryViewById(String id);

    IPage<ProductionWorkOrderExt> query(String searchText, String productionOrderId, int pageSize, int pageIndex);

    List<ProductionWorkOrderExt> query(String productionOrderItemId);

    List<ProductionWorkOrderExt> query(String productionOrderItemId, String seqItemId);

    List<ProductionWorkOrderOutExt> queryOut(String productionOrderItemId, String productionSeqItemId);

}